Matthias Clasen [Fri, 7 May 2021 00:34:33 +0000 (00:34 +0000)]
Merge branch 'hidden-mnemonics-fix' into 'master'
label: Make hidden mnemonics work again
See merge request GNOME/gtk!3518
Matthias Clasen [Thu, 6 May 2021 15:33:15 +0000 (15:33 +0000)]
Merge branch 'emoji-data-prefix-fix' into 'master'
emoji: Use a portable and configuration-dependent path to load the data
See merge request GNOME/gtk!3522
Matthias Clasen [Thu, 6 May 2021 15:26:49 +0000 (15:26 +0000)]
Merge branch 'macos' into 'master'
Fix building both X11 and Quartz backends on macOS
See merge request GNOME/gtk!3508
Marco Trevisan (Treviño) [Thu, 6 May 2021 13:34:30 +0000 (15:34 +0200)]
emoji: remove duplicated include
Marco Trevisan (Treviño) [Thu, 6 May 2021 13:32:44 +0000 (15:32 +0200)]
emoji: Use a portable and configuration-dependent path to load the data
Load the emojis data in all the platforms, respecting the configured
GTK_DATA_PREFIX
Dan Cîrnaț [Tue, 4 May 2021 11:52:21 +0000 (13:52 +0200)]
Fix compilation of c++ test: cpp_args
The correct meson argument for c++ is cpp_args.
Remove unnecessary(?) "-Idummy-headers" - breaks build
Dan Cîrnaț [Tue, 4 May 2021 11:51:35 +0000 (13:51 +0200)]
Only compile gtkmountoperation-stub if the X11 backend is not enabled
Dan Cîrnaț [Tue, 4 May 2021 11:49:45 +0000 (13:49 +0200)]
Conditional check for gdesktopappinfo header
GDesktopAppInfo is not available on macOS and needs to be disabled
Matthias Clasen [Thu, 6 May 2021 02:53:52 +0000 (22:53 -0400)]
label: Make hidden mnemonics work again
The change in
875a92b95f12dadd6 made labels strip
out underlines earlier, but overlooked that this made
mnemonics not work before the timeout to show them
has passed. That was unintentional. Make mnemonics
work regardless of their visibility, again.
Matthias Clasen [Thu, 6 May 2021 00:52:06 +0000 (00:52 +0000)]
Merge branch 'introspection-test' into 'master'
Add an introspection api test
See merge request GNOME/gtk!3514
Matthias Clasen [Wed, 5 May 2021 00:39:52 +0000 (20:39 -0400)]
Add an introspection api test
Every beginning is small... just check one constant for now.
Matthias Clasen [Wed, 5 May 2021 23:17:07 +0000 (23:17 +0000)]
Merge branch 'update-ci-to-f34' into 'master'
WIP ci: Update the image to Fedora 34
See merge request GNOME/gtk!3516
Matthias Clasen [Wed, 5 May 2021 23:16:39 +0000 (23:16 +0000)]
Merge branch 'msvc-ci' into 'master'
ci: Add MSVC build
See merge request GNOME/gtk!3486
Matthias Clasen [Wed, 5 May 2021 22:58:23 +0000 (18:58 -0400)]
Confine -mf16c to a single source file
We can't use this flag for any code that may get run
outside the __builtin_cpu_supports() check, and meson
doesn't allow per-file cflags. So we have to split this
code off into its own static library.
Xavier Claessens [Wed, 5 May 2021 20:40:57 +0000 (16:40 -0400)]
Meson: gdk-pixbuf jpeg/png options changed to feature
Matthias Clasen [Wed, 5 May 2021 20:31:03 +0000 (16:31 -0400)]
ci: Add pygobject to the images
This will let us add introspection tests in the future.
Matthias Clasen [Wed, 5 May 2021 20:22:32 +0000 (16:22 -0400)]
ci: Show OS release for our containers
Matthias Clasen [Wed, 5 May 2021 19:41:46 +0000 (15:41 -0400)]
Add debug spew to gdk tests
Matthias Clasen [Wed, 5 May 2021 15:23:26 +0000 (15:23 +0000)]
Merge branch 'wl-phys-transform' into 'master'
gdk/wayland: Take transform into account when setting physical size
See merge request GNOME/gtk!3515
Xavier Claessens [Thu, 29 Apr 2021 15:09:04 +0000 (11:09 -0400)]
ci: Add MSVC build
This script is copied from glib CI.
Guido Günther [Wed, 5 May 2021 11:59:26 +0000 (13:59 +0200)]
gdk/wayland: Take transform into account when setting physical size
Width and height of a GdkMonitor are derived via wl_output which
talks about physical dimensions of a device and compositors usually
implement this as the untransformed values (e.g. weston, wlroots).
Since the GTK client has no way to figure out if a monitor was rotated,
transform the physical dimensions according to the applied wayland
transform to have the physical dimensions match the logical ones.
Mutter flips the physical dimensions itself but doesn't announce the
transform so this shouldn't break anything there.
Matthias Clasen [Sun, 2 May 2021 01:02:08 +0000 (21:02 -0400)]
Disable another font-challenged reftest
Matthias Clasen [Sun, 2 May 2021 00:21:54 +0000 (20:21 -0400)]
Help the compiler out
gcc says: error: iteration
2147483649 invokes undefined behavior
[-Werror=aggressive-loop-optimizations]
which of course, never happens because ncols is always >= 2.
Add some assertions to tell the compiler.
Matthias Clasen [Sat, 1 May 2021 23:56:23 +0000 (19:56 -0400)]
ci: Update the image to Fedora 34
This is in preparation to using mutter --headless
for tests.
Matthias Clasen [Wed, 5 May 2021 00:04:16 +0000 (00:04 +0000)]
Merge branch 'bilelmoussaoui/trick-gir-list-position' into 'master'
gtk: trick g-ir scanner to add INVALID_LIST_POSITION
See merge request GNOME/gtk!3513
Bilal Elmoussaoui [Tue, 4 May 2021 21:33:41 +0000 (21:33 +0000)]
gtk: trick g-ir scanner to add INVALID_LIST_POSITION
without it, the define doesn't get picked in the introspection data
Matthias Clasen [Tue, 4 May 2021 21:40:48 +0000 (21:40 +0000)]
Merge branch 'wip/exalm/text-handles' into 'master'
texthandle: Add a contents css node
Closes #3475
See merge request GNOME/gtk!3511
Matthias Clasen [Tue, 4 May 2021 21:03:30 +0000 (21:03 +0000)]
Merge branch 'fix-reftest' into 'master'
Fix the icon-effect-missing reftest
See merge request GNOME/gtk!3512
Matthias Clasen [Tue, 4 May 2021 20:21:37 +0000 (16:21 -0400)]
Fix the icon-effect-missing reftest
This was comparing the included image-missing icon
with the one in the current icontheme on the test
system. Works fine as long as we don't change
the icons (which we just did). To avoid this, set
the icontheme to hicolor for this test, which does
not have the image-missing icon, so we end up getting
the builtin icon for both ui files.
Alexander Mikhaylenko [Tue, 4 May 2021 18:53:05 +0000 (23:53 +0500)]
texthandle: Add a contents css node
Allow to theme it including using css transforms to avoid having assets.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3475
Matthias Clasen [Tue, 4 May 2021 16:18:29 +0000 (16:18 +0000)]
Merge branch 'wip/exalm/switch-icons' into 'master'
icons: Fix switch icon names
Closes #3920
See merge request GNOME/gtk!3509
Matthias Clasen [Tue, 4 May 2021 16:18:00 +0000 (16:18 +0000)]
Merge branch 'wip/exalm/icons' into 'master'
Update icons from adwaita-icon-theme
Closes #2656
See merge request GNOME/gtk!3510
Alexander Mikhaylenko [Tue, 4 May 2021 13:50:31 +0000 (18:50 +0500)]
icons: Update from adwaita-icon-theme
Also add the missing edit-clear RTL variant.
Alexander Mikhaylenko [Tue, 4 May 2021 13:34:51 +0000 (18:34 +0500)]
icons: Remove media-playback-start-symbolic-rtl
See https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/101
Matthias Clasen [Tue, 4 May 2021 13:17:53 +0000 (13:17 +0000)]
Merge branch 'wip/exalm/css-error' into 'master'
cssselector: Fix max_selector usage
Closes #3100
See merge request GNOME/gtk!3507
Alexander Mikhaylenko [Tue, 4 May 2021 12:49:07 +0000 (17:49 +0500)]
icons: Fix switch icon names
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3920
Matthias Clasen [Tue, 4 May 2021 11:53:13 +0000 (11:53 +0000)]
Merge branch 'test.msvc' into 'master'
clipboard-client.c: Include necessary headers for Windows
See merge request GNOME/gtk!3505
Alexander Mikhaylenko [Mon, 3 May 2021 09:41:15 +0000 (14:41 +0500)]
cssselector: Fix max_selector usage
Reverts
2ae8ace78499074a4d0ea6d9272cda0e6b9d5807 other than code style
fixes.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3100
Chun-wei Fan [Mon, 3 May 2021 08:33:14 +0000 (16:33 +0800)]
clipboard-client.c: Include necessary headers for Windows
We need to include io.h and process.h for close() and exit(), as unistd.h may
not be universally available.
Matthias Clasen [Tue, 4 May 2021 00:14:39 +0000 (20:14 -0400)]
4.3.0
Matthias Clasen [Tue, 4 May 2021 00:30:51 +0000 (20:30 -0400)]
Fix dist script for theme reorg
Matthias Clasen [Mon, 3 May 2021 23:55:46 +0000 (23:55 +0000)]
Merge branch 'wip/exalm/textview-selection' into 'master'
textview: Selection rendering fixes
See merge request GNOME/gtk!3503
Matthias Clasen [Mon, 3 May 2021 21:35:55 +0000 (21:35 +0000)]
Merge branch 'gnome-todo-dnd-crash' into 'master'
dragsource: Keep the source alive long enough
See merge request GNOME/gtk!3504
Alexander Mikhaylenko [Mon, 3 May 2021 20:25:36 +0000 (01:25 +0500)]
label: Update selection node and redraw on state changes
Mirror GtkText and GtkTextView.
Matthias Clasen [Mon, 3 May 2021 21:00:17 +0000 (17:00 -0400)]
dragsource: Keep the source alive long enough
When a drop causes the event controller to be finalized
(directly or indirectly), we end up segfaulting while
trying to wrap up the drag operation. So, keep a reference
on the GtkDragSource from when the drag begins to when
it is done.
This fixes a crash in gnome-todo when dragging tasks.
Alexander Mikhaylenko [Mon, 3 May 2021 20:20:53 +0000 (01:20 +0500)]
text: Queue redraw on state changes
Mirror GtkTextView.
Alexander Mikhaylenko [Mon, 3 May 2021 19:32:25 +0000 (00:32 +0500)]
textlayout: Clip selection bounds to the line extents
The rest of the line will be painted separately.
Matthias Clasen [Mon, 3 May 2021 00:03:46 +0000 (20:03 -0400)]
NEWS: Updates
Matthias Clasen [Mon, 3 May 2021 19:21:42 +0000 (19:21 +0000)]
Merge branch 'static-analysis-fixes' into 'master'
Static analyis fixes
See merge request GNOME/gtk!3501
Matthias Clasen [Mon, 3 May 2021 19:21:18 +0000 (19:21 +0000)]
Merge branch 'ebassi/for-master' into 'master'
Install documentation in the appropriate place
See merge request GNOME/gtk!3408
Matthias Clasen [Mon, 3 May 2021 19:20:18 +0000 (19:20 +0000)]
Merge branch 'wip/carlosg/xdg-activation' into 'master'
gdk/wayland: Support the xdg-activation wayland protocol
See merge request GNOME/gtk!3502
Alexander Mikhaylenko [Mon, 3 May 2021 17:05:44 +0000 (22:05 +0500)]
textlayout: Support fully transparent selection text
Pango treats 0 alpha value as a unset alpha, so we have to special case it.
Alexander Mikhaylenko [Mon, 3 May 2021 16:40:37 +0000 (21:40 +0500)]
textview: Invalidate selection when its style changes
Alexander Mikhaylenko [Mon, 3 May 2021 14:03:47 +0000 (19:03 +0500)]
textlayout: Only special case selection rendering for opaque colors
If the selection is partially transparent, it may still be desirable to
see the colors from tags underneath.
Carlos Garnacho [Wed, 2 Dec 2020 16:22:41 +0000 (17:22 +0100)]
gdk/wayland: Support the xdg-activation wayland protocol
This protocol implements the IPC necessary to focus application
windows across launcher/launchee. Add support for it.
Matthias Clasen [Mon, 3 May 2021 11:36:34 +0000 (07:36 -0400)]
updateiconcache: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:36:19 +0000 (07:36 -0400)]
buildertool: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:57 +0000 (07:35 -0400)]
printbackendlpr: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:40 +0000 (07:35 -0400)]
textbtree: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:21 +0000 (07:35 -0400)]
stack: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:35:03 +0000 (07:35 -0400)]
printoperation: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:34:46 +0000 (07:34 -0400)]
listbase: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:34:24 +0000 (07:34 -0400)]
filterlistmodel: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:34:04 +0000 (07:34 -0400)]
emojichooser: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:33:49 +0000 (07:33 -0400)]
fnmatch: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:33:31 +0000 (07:33 -0400)]
a11y: Static analysis fixes
Matthias Clasen [Mon, 3 May 2021 11:32:57 +0000 (07:32 -0400)]
x11: A few static analysis fixes
Matthias Clasen [Mon, 3 May 2021 02:34:22 +0000 (22:34 -0400)]
gdktoplevelsize: Comment out some unused code
This is not currently useful, and clang complains.
Matthias Clasen [Mon, 3 May 2021 01:40:46 +0000 (01:40 +0000)]
Merge branch 'inspector-layouts' into 'master'
Various small inspector improvements
See merge request GNOME/gtk!3500
Matthias Clasen [Mon, 3 May 2021 00:47:09 +0000 (20:47 -0400)]
inspector: Improve monitor information display
Avoid a nested listbox, show the connector,
don't show information we don't have. Also,
disconnect all signal handlers from the display
when the inspector is going away.
Matthias Clasen [Mon, 26 Apr 2021 04:15:34 +0000 (00:15 -0400)]
inspector: Show keyboard layouts
Matthias Clasen [Mon, 26 Apr 2021 03:34:39 +0000 (23:34 -0400)]
Add gdk_wayland_device_get_xkb_keymap
This can be useful to get more detailed information
about keyboard configuration.
Matthias Clasen [Mon, 26 Apr 2021 03:34:16 +0000 (23:34 -0400)]
Add 4.4 version macros
Matthias Clasen [Mon, 3 May 2021 00:07:50 +0000 (20:07 -0400)]
Bump version to 4.3.0
We are going to add new API.
Fix up affected tests.
Matthias Clasen [Sun, 2 May 2021 23:51:41 +0000 (23:51 +0000)]
Merge branch 'shifted-mnemonics' into 'master'
shortcuts: Ignore consumed modifiers for mnemonics
Closes #3912
See merge request GNOME/gtk!3499
Matthias Clasen [Sun, 2 May 2021 22:42:35 +0000 (22:42 +0000)]
Merge branch 'mesa.win32.fixes' into 'master'
gdkglcontext-win32.c: Fix running with Mesa drivers
See merge request GNOME/gtk!3483
Matthias Clasen [Sun, 2 May 2021 22:33:44 +0000 (18:33 -0400)]
shortcuts: Ignore consumed modifiers for mnemonics
This is necessary to make mnemonics like Alt-1 work in
layouts where numeric keys are shifted, like AZERTY.
Fixes: #3912
Matthias Clasen [Sun, 2 May 2021 14:00:51 +0000 (14:00 +0000)]
Merge branch 'more-content-serializer-tests' into 'master'
Add a test for custom serializers
See merge request GNOME/gtk!3497
Matthias Clasen [Sun, 2 May 2021 13:17:20 +0000 (09:17 -0400)]
Add a test for custom serializers
Matthias Clasen [Sun, 2 May 2021 04:30:19 +0000 (04:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Add tests for content serialization
See merge request GNOME/gtk!3496
Matthias Clasen [Sun, 2 May 2021 04:01:57 +0000 (00:01 -0400)]
Add tests for content serialization
Test that roundtripping various types of content
through a stream of a given mimetype works as
expected.
Matthias Clasen [Sun, 2 May 2021 03:09:41 +0000 (03:09 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
contentdeserializer: Fix an oversight
See merge request GNOME/gtk!3495
Matthias Clasen [Sun, 2 May 2021 02:44:41 +0000 (22:44 -0400)]
contentdeserializer: Fix an oversight
The argument passed with string_deserializer must be
a charset name. Passing the mimetype there does not
make sense.
Matthias Clasen [Sat, 1 May 2021 16:06:26 +0000 (16:06 +0000)]
Merge branch 'fix-gst-type' into 'master'
gtkgstmediafile: Fix callback argument type
See merge request GNOME/gtk!3494
Matthias Clasen [Sat, 1 May 2021 15:59:30 +0000 (15:59 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
clipboard tests: Add noreturn annotations where possible
See merge request GNOME/gtk!3493
Matthias Clasen [Sat, 1 May 2021 15:59:21 +0000 (15:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
wayland: Rewrite shm format debug spew
See merge request GNOME/gtk!3492
Ivan Molodetskikh [Sat, 1 May 2021 15:17:40 +0000 (18:17 +0300)]
gtkgstmediafile: Fix callback argument type
Matthias Clasen [Sat, 1 May 2021 15:05:27 +0000 (11:05 -0400)]
wayland: Rewrite shm format debug spew
Rewrite this in a way that doesn't depend on kernel
header defines at the time the wayland scanner was run.
This was causing the build to break on Centos 8, where
a bunch of fourcc formats are missing.
Timm Bäder [Sat, 1 May 2021 15:14:23 +0000 (17:14 +0200)]
clipboard tests: Add noreturn annotations where possible
Clang complains when they are missing.
Matthias Clasen [Fri, 30 Apr 2021 19:29:15 +0000 (19:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Check for root being a GtkWindow in a few places
See merge request GNOME/gtk!3491
Matthias Clasen [Fri, 30 Apr 2021 17:44:15 +0000 (13:44 -0400)]
Check for root being a GtkWindow in a few places
These things were showing up as crashes during DND,
when the root is a GtkDragIcon. I'm sure there's more.
Matthias Clasen [Fri, 30 Apr 2021 16:48:04 +0000 (16:48 +0000)]
Merge branch 'bilelmoussaoui/gdk-content-formats-annotations' into 'master'
gdk: add length annotation to gdk_content_formats_get_mime_types
See merge request GNOME/gtk!3488
Matthias Clasen [Fri, 30 Apr 2021 15:25:50 +0000 (15:25 +0000)]
Merge branch 'clipboard-test' into 'master'
Add more clipboard tests
See merge request GNOME/gtk!3478
Matthias Clasen [Fri, 30 Apr 2021 13:46:11 +0000 (09:46 -0400)]
Install the clipboard-client binary
It is needed for the installed test.
Bilal Elmoussaoui [Fri, 30 Apr 2021 13:40:27 +0000 (15:40 +0200)]
gdk: add zero-terminated annotation to content_formats_get_gtypes
Bilal Elmoussaoui [Fri, 30 Apr 2021 11:42:02 +0000 (11:42 +0000)]
gdk: fix content_formats_get_mime_types annotation
Matthias Clasen [Fri, 30 Apr 2021 13:17:39 +0000 (09:17 -0400)]
Skip clipboard tests when they don't work
On headless weston, we have no seat, so focusing
the window won't work, and thus claiming the clipboard
won't either. Skip the tests in that case.
Matthias Clasen [Fri, 30 Apr 2021 12:10:48 +0000 (08:10 -0400)]
Run gdk tests with an unset D-Bus address
If the session bus address is unset, GLib will
helpfully try to autolaunch a bus, which will
fail and timeout. If we set an empty address,
it gives up early.
Matthias Clasen [Fri, 30 Apr 2021 12:02:35 +0000 (08:02 -0400)]
Fix the clipboard test under X11
We don't have a signal handler to worry about here.
Matthias Clasen [Fri, 30 Apr 2021 11:47:19 +0000 (07:47 -0400)]
Make clipboard tests run installed
Use dedicated data files, and install them.
As usual, to run the test binary by hand, you
will need to set G_TEST_SRCDIR.